div {
    width: 50%;
    height: 200px;
}

div:nth-child(1) {
    background-color: #f00;
}

div:nth-child(2) {
    background-color: #0f0;
}